home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 28 Feb 1996 15:43:01 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb28084301@qcd.lanl.gov>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <AD536AAB9668B76CD@mcdialb09.it.luc.edu>
- <312E363C.3CDE@corp.dialog.com> <TANMOY.96Feb23212936@qcd.lanl.gov>
- <4h0gn2$mnk@wizvax.wizvax.net>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: multics@wizvax.wizvax.net's message of 27 Feb 1996 22:04:02 -0500
-
- In article <4h0gn2$mnk@wizvax.wizvax.net>
- multics@wizvax.wizvax.net (Richard Shetron) writes:
- <snip>
- RS: >PG: Array CAN NOT be a member of a Union. But, it is always a case in our
- RS: >PG: Text Processing - I want to look at my source record's buffer at some
- RS: >
- RS: >Are you claiming that
- RS: > union { int x;
- RS: > char y[4]; } z;
- RS: >is invalid C? Why?
- RS:
- RS: Is that int x a long int or a short int?
-
- Neither. It is int.
-
- RS:
- RS: Last I knew the size of an int was compiler dependent.
-
- Last I knew, every type (other than bit field) in C had a `compiler
- dependent' size.
-
- C works close to the machine: if you want your own fixed size types,
- irrespective of whether the machine supports them, go build them.
-
- I fail to see what this has to do with the validity of arrays in
- struct.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-